Interface sjl.AssociativeContainer
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface sjl.AssociativeContainer

public interface AssociativeContainer
extends Object
extends Container
Defines the methods allowed on associative container types. The supported containers are currently: Map, MultiMap, Set and MultiSet.

Copyright © 1996 Finn Bock

See Also:
Map, MultiMap, Set, MultiSet

Method Index

 o count(Object)
Return the number of elements with key equal to key.
 o equal_range(Object)
Return iterators i and j such that all elements with keys equal to key are in the range [i,j).
 o erase(Iterator, Iterator)
Erase the elements in the range [first,last).
 o erase(Object)
Erase the element with a key equal to the object.
 o find(Object)
Return the iterator pointing to an element with a key equal to key, or end() if such an element is not found.
 o insert(InputIterator, InputIterator)
Insert copies of [first, last).

Methods

 o insert
  public abstract void insert(InputIterator first,
                              InputIterator last)
Insert copies of [first, last).
 o erase
  public abstract int erase(Object object)
Erase the element with a key equal to the object.
 o erase
  public abstract void erase(Iterator first,
                             Iterator last)
Erase the elements in the range [first,last).
 o find
  public abstract ForwardIterator find(Object key)
Return the iterator pointing to an element with a key equal to key, or end() if such an element is not found.
 o count
  public abstract int count(Object key)
Return the number of elements with key equal to key.
 o equal_range
  public abstract Pair equal_range(Object key)
Return iterators i and j such that all elements with keys equal to key are in the range [i,j). The range is empty if no elements have the key.

All Packages  Class Hierarchy  This Package  Previous  Next  Index